#!/bin/bash

# 打包Window平台脚本
set CGO_ENABLED=0 
set GOOS=windows 
set GOARCH=amd64
set CGO_CXXFLAGS="./libs/webview2/build/native/include"
set CGO_LDFLAGS="./libs/webview2/build/native/x64"

# go build -o build/bin/lucidity-note.exe main.go
go build -ldflags="-H windowsgui" -o build/bin/lucidity-note.exe main.go

set CGO_ENABLED=1
set GOOS=linux 
set GOARCH=amd64 
set CGO_CXXFLAGS="-g -O2"
set CGO_FFLAGS="-g -O2"

# 创建快捷方式
cp -f logo.png ./build